import actionTypes from "../action/actionTypes";

export default function studentReducer(preState=[],action){
  switch(action.type){
    case actionTypes.LOAD_STUDENT_LIST:
      return action.payload
    default: 
      return preState
  }
}